<div id="app-container" class="container" myApp="RUIQU_STORE_CUSTOMERS_INDEX">

  <div class="app">
     <div class="app-inner clearfix">
      <div class="widget-list-filter">
        <!-- <%= link_to "添加管理员", 'javascript:;', class: 'ui-btn ui-btn-success' %> -->
        <p class="help-block error-message flash-notice" style=""> <%= notice %></p>
      </div>
         <table id="wechat_table" class="ui-table ui-table-list">
          <thead>
              <tr>
                <th>
                  #
                </th>
                <th>
                  <%= "姓名" %>
                </th>
                <th>
                  <%= "单位" %>
                </th>
                <th>
                  <%= "地址" %>
                </th>
                <th>
                  <%= "手机号" %>
                </th>
                <th>
                  <%= "操作" %>
                </th>
              </tr>
          </thead>
          <tbody>
              <% @store_customers.each_with_index do |customer, i| %>
                <tr>
                  <td>
                    <%= i + 1 %>
                  </td>
                  <td>
                    <%= customer.name %>
                  </td>
                  <td>
                    <%= customer.company_name %>
                  </td>
                  <td>
                    <%= customer.company_address %>
                  </td>
                  <td>
                    <%= customer.phone_number %>
                  </td>
                  <td>
                    <%= link_to '查看订单', "/ruiqu/store_orders?q[store_customer_id_eq]=#{customer.id}" %>
                  </td>
                </tr>
              <% end %>
          </tbody>
        </table>
      </div>
  </div>

</div>
